package com.jin.mapper;

import com.jin.entity.ProductInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author JJ LIU
 * @since 2021-07-21
 */
@Repository
public interface ProductInfoMapper extends BaseMapper<ProductInfo> {

    @Select("SELECT * FROM product_info WHERE product_status = #{productStatus}")
    List<ProductInfo> findByProductStatus(@Param("productStatus") Integer productStatus);
}
